/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-08-28 14:32:50
 * @LastEditors: turingchang
 * @LastEditTime: 2020-09-02 21:15:49
 */

'use strict';
const BaseController = require('../base/base');

class RoleController extends BaseController {
    async list() {
        const ctx = this.ctx;
        var data = await ctx.service.admin.role.list();
        ctx.outSuccess(null, data);
    }
    async get() {
        const ctx = this.ctx;
        var id =ctx.query.id;
        var data = await ctx.service.admin.role.get(id);
        ctx.outSuccess(null, data);
    }
    async create() {
        const ctx = this.ctx;
        var data = null;
        ctx.outSuccess(null, data);
    }
}

module.exports = RoleController;